package com.hmy.uaa.bo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
@ApiModel(value = "角色入参", description = "角色入参")
public class RoleRequest {
    @ApiModelProperty(value = "主键id")
    @NotNull(groups = RoleRequest.Update.class)
    private Long id;

    @NotEmpty
    @Size(max = 32)
    @ApiModelProperty(value = "名称", notes = "长度：32")
    private String name;

    /***/
    @ApiModelProperty(value = "描述", notes = "长度：255")
    @Size(max = 255)
    private String description;

    /***/
    @ApiModelProperty(value = "角色key", notes = "长度：64")
    @Size(max = 64)
    private String roleKey;

    @ApiModelProperty(value = "启用状态，0：禁用；1：启用", allowableValues = "range[0,1]", example = "0")
    @Min(0)
    @Max(1)
    private Integer status;


    public interface Insert {

    }

    public interface Update {

    }
}
